<?php

class NObject{

function get($name){
return $this->$name;
}
function set($name,$value){
	$this->$name=$value;
}

function setError(){
}
function getProperties( $public = true )
	{
		$vars  = get_object_vars($this);

        if($public)
		{
			foreach ($vars as $key => $value)
			{
				if ('_' == substr($key, 0, 1)) {
					unset($vars[$key]);
				}
			}
		}

        return $vars;
	}
}



?>